import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'

import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department.vue'
import Employee from './views/org/Employee.vue'
import Type from './views/system/Type.vue'
import Detail from './views/system/Detail.vue'
import ShopRegister from './views/ShopRegister.vue';
import Shop from "./views/org/Shop";
import Menu from "./views/system/Menu";
import Role from "./views/system/Role";
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' },
            { path: '/', component: echarts, name: 'echarts' }
        ]
    },


    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;